export const handlePrice = (price) => {
	if (price == '' || price == null) {
		return '0.00'
	}

	//将float转换为string
	var priceStr = price + ""

	//获取 字符串长度
	var priceLength = priceStr.length;

	//获取字符串中 . 的下标
	var index = priceStr.indexOf('.')

	//如果不包含（则为整数，如：1）
	if (index == -1) {
		return priceStr + ".00"
	}

	//获取 . 后还有几位小数
	var priceIndex = priceLength - (index + 1)
	if (priceIndex < 2) {
		return priceStr + "0"
	} else {
		return priceStr
	}

}